home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / compress / a2lswtc2.lzh / a2lswtc1.doc next >
Text File  |  1990-11-07  |  6KB  |  112 lines

  1.                                         September 2,1989
  2.  
  3. A2LSWTCH.PRG by Jan Dembowski    
  4.  
  5. (Thats ARC.TTP TO LHARC.TTP Switcher!)
  6.  
  7. What you've got
  8. ---------------
  9.  
  10.      In A2LSWTC1.ARC should be A2LSWTC1.PRG (really?) and 
  11. A2LSWTC1.DOC (your reading it!) and A2LSWTC1.BAS (The basic 
  12. listing of the program). This A2LSWTCH.PRG is not copyrighted (how 
  13. do you do that anyway?) but if you pass it around then give me 
  14. credit okay?
  15.  
  16. What this progam does
  17. ---------------------
  18.  
  19.      This program is offered to allow people who use LHARC and ARC 
  20. to switch back and forth between the two compression methods with 
  21. the least amount of effort. A2LSWTCH.PRG is written in HiSoft 
  22. Basic and uses the mouse. I've tried to make this program as user 
  23. friendly as I can, if you get lost in the program just press the
  24. Cancel button on any of the alert boxes. This will take you back 
  25. to the begining of the program. At any of the Item Selectors 
  26. pressing cancel will simply get you to the point BEFORE the Item 
  27. Selector was called. If an Item Selector stares you in the face 
  28. and you don't know what it wants just hit Cancel and you'll end up 
  29. at a alert box thats tells you what the Item Selector will be used 
  30. for.
  31.  
  32. First time you run this
  33. -----------------------
  34.  
  35.      When A2LSWTCH.PRG is ran it checks if a file called 
  36. A2LSWTCH.CNF is in the same folder as the program. If it is it 
  37. will read three lines out of that file: 1)The name and path of 
  38. the ARC.TTP you are using. Use DCOPY or ARC521B.TTP or what ever 
  39. you want. 2) The name and path of LHARC.TTP. 3) The word "Leave" 
  40. or "Delete". This last line tells A2LSWTCH.PRG if you want to 
  41. leave the original file you've switched alone or delete it. I use 
  42. this program to change whole folders of ARC's to LZH's and then 
  43. delete the originals. They've been switched: what do I need two 
  44. compressed files for anyway? But the default is "Leave". This is 
  45. being safe in case you don't trust the compression programs or my 
  46. switcher (God forbid!).
  47.      If A2LSWTCH.CNF does not exist then the A2LSWTCH.PRG will ask 
  48. you for your defaults, etc. But what if the configuration file exist 
  49. and you decide to change your configuration file? Just run 
  50. A2LSWTCH.PRG only this time press SHIFT  or CONTROL or ALTERNATE 
  51. or any combination of these keys. This will force A2LSWTCH.PRG to 
  52. make a new configuration file.
  53.  
  54. Why I wrote this
  55. ----------------
  56.  
  57.      LHARC is awesome. I like to keep ARC'ed copies of my files 
  58. around for backup purposes. Some day I might want that program so 
  59. I just ARC it and put it away for future use. But ARC files take 
  60. up disk space and I'm er, a frugal kind of guy. I don't like 
  61. wasteing disk space. LHARC puts ARC to shame. It just compresses 
  62. much better. Period. But converting all of these ARC's to LZH's 
  63. hurts the fingers and eyes. Hurts alot. So I when I saw 
  64. ARC2LZH2.ARC by Doyle C. Helms I was overjoyed! Happy! Then I 
  65. tried it. It only ran off drive D. You couldn't select where the 
  66. LZH files would end up. I kept messing up the Item Selectors.
  67.      So I got out my HiSoft Basic and made my own converter. Now a 
  68. ARC to LZH converter had been made already so lets call my program 
  69. a "Switcher" okay? Now it does exactly what I want it to do. The 
  70. "Switcher" can be ran ANYWHERE in your file system. I have made it 
  71. so anyone can use it. Run it off drive G if you want. Don't worry 
  72. about putting it in any folder: the program will figure out where 
  73. it is located and adjust.
  74.      The interesting part of the program was the file handling 
  75. part. This was taken from DIR2STR.BAS that comes with HiSoft 
  76. Basic. USE THOSE EXAMPLES! They are very informative and useful. I 
  77. can't say enough how the HiSoft Basic examples made things easier. 
  78. I've read reviews in different places (Atari Explorer was the last 
  79. place) about HiSoft Basic. Its a great basic. I like it a great 
  80. deal: why not try it out? If you program in basic, and was weened 
  81. on basic that was Microsoft Basic compatible then this is for 
  82. you.
  83.      I've included the basic source code: It has comments 
  84. sprinkled all over it. Its not really very structered and any 
  85. comments are gladly welcome. Thanks to Derrick Hall for his Alert 
  86. Maker program: I made my own alert boxes but his showed me how its 
  87. done.
  88.      Well thats it. I hope you like this program. If you have any 
  89. questions I can be reached on GEnie at J.DEMBOWSKI1 Leave me mail 
  90. and I'll answer it as soon as I get it.
  91.  
  92. Why I wrote version 1.01 on September 3,1989
  93. --------------------------------------------
  94.  
  95.      After uploading the file A2LSWTCH.ARC I realized two things: 
  96. if you try to create a folder with that program and the path name 
  97. is longer than 28 characters then you will get a cute little error 
  98. message from HiSoft's runtimes due to a way I set up my alert box. 
  99. Now your path can be as long as you like. If its greater than 40 
  100. characters the alert box will chop off the extra. Don't panic, the 
  101. path you want created will be created. GEM just wont show more 
  102. than 40 characters on a line in a alert box.
  103.      I also realized that if something goes wrong executing one of 
  104. your TTP's and you selected Delete in your configuration then the 
  105. original file will get wiped BEFORE IT GETS SWITCHED! Things like 
  106. that keep a body up nights so I made a little check to see if 
  107. FNpexec comes out okay. After the changes were made I just tagged 
  108. it version 1.01 (had no version before. Who writes versions for 
  109. little stuff like this anyway?). If any problems arise let me know
  110. by mail on GEnie.
  111.  
  112.